<?php
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.model');

class DocarioModelIconport extends JModel {
    var $_catid;
    
    function __construct() {
        parent::__construct();
    }
    
    function setCatId($catid) { $this->_catid = $catid; }
    
    function getCategories() {
        $query = 'select * from #__docario_category';
        $query .= ' where catid='.$this->catid;
        
        $this->_db->setQuery($query);
        return $this->_db->loadObjectList();
    }
    
    function getFiles() {
    
    }
}
